package org.soft.xinyu.equipmentmanagement.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.soft.xinyu.equipmentmanagement.entity.WswMachine;
import org.soft.xinyu.equipmentmanagement.mapper.WswMachineMapper;
import org.soft.xinyu.equipmentmanagement.service.WswMachineService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author vicente
 * @since 2021-11-22
 */
@Service
public class WswMachineServiceImpl extends ServiceImpl<WswMachineMapper, WswMachine> implements WswMachineService {

    @Resource
    WswMachineMapper wswMachineMapper;

    @Override
    public List<WswMachine> getWswMachineListPage(Page<WswMachine> page, String machineName) {
        return wswMachineMapper.getWswMachineListPage(page.getCurrent(), page.getSize(), machineName);
    }
}
